package com.rongshu.view.login.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.rongshu.R;
import com.rongshu.utils.Constant;
import com.rongshu.view.base.BaseActivity;
import com.rongshu.view.login.entity.LoginQuestion;

import butterknife.BindView;
import butterknife.OnClick;

public class LoginQuestionDetailsActivity extends BaseActivity {
    @BindView(R.id.txt_top_title)
    TextView txt_top_title;//标题
    @BindView(R.id.txtContent)
    TextView txtContent;

    private LoginQuestion.ResponseBean mResponseBean;

    @Override
    protected int initLayout() {
        return R.layout.activity_login_question_details_view;
    }

    @Override
    protected void initView() {
        //获取意图数据
        mResponseBean = getIntent().getParcelableExtra(Constant.INTENT_DATA);
        //设置title
        txt_top_title.setText(mResponseBean.getTitle());
        txtContent.setText(mResponseBean.getContent());
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void updateViews(boolean isRefresh) {

    }

    @OnClick({R.id.layout_back,R.id.btnHaveHelp, R.id.btnQuestionCouple})
    public void onClick(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.layout_back:
                finish();
                break;
            case R.id.btnHaveHelp:
                intent = new Intent(this, PasswordLoginActivity.class);
                startActivity(intent);
                overridePendingTransition(R.anim.hold, R.anim.zoom_in_exit);
                break;
            case R.id.btnQuestionCouple:
                intent = new Intent(this, QuestionFeedbackActivity.class);
                startActivity(intent);
                overridePendingTransition(R.anim.hold, R.anim.zoom_in_exit);
                break;
        }
    }
}
